//
//  CallTree.hpp
//  DemoV2
//
//  Created by 董一龙 on 2022/8/10.
//

#ifndef CallTree_hpp
#define CallTree_hpp

#include <cstdint>
#include <vector>
#include <string>

struct CallTree {
    uint64_t timestamp;
    uint64_t duration;
    std::string name;
    std::vector<CallTree*> subCallTreeList;
    
    CallTree():timestamp(0), duration(0){};
    ~CallTree() {
        for(auto pCallTree : subCallTreeList) {
            delete pCallTree;
        }
    }
    
    
};
struct Item {
    std::string name;
    uint64_t ts;
    uint64_t sf;
    uint64_t dur;
};


#endif /* CallTree_hpp */
